package com.sentiment.nlpalgo.bean;

import org.bson.Document;

/*
 * @author liaozhenlin
 * @email 939899727@qq.com
 * 
 */

/*
 * 该Javabean用于保存数组的关键字分析结果
 * weight：该句子中某个单词的权重，重要的程度
 * word ：单词
 */
@SuppressWarnings("serial")
public class Keywords extends Document{
 
	public double getWeight() {
		return getDouble("weight");
	}
	public void setWeight(double weight) {
		append("weight", weight);
	}
	public String getWord() {
		return getString("word");
	}
	public void setWord(String word) {
		append("word", word);
	}
	public Keywords(double weight, String word) {
		append("weight", weight);
		append("word", word);
	}
	public Keywords() {
	}
	
}
